from datetime import datetime
from pydantic import BaseModel, Field


class CouponCateInSchema(BaseModel):
    name: str | None
    key: int | None
    sort: int | None
    status: int | None
    remark: str | None


class CouponCateOutSchema(BaseModel):
    id: int | None
    key: int | None
    name: str | None
    sort: int | None=Field(default=None)
    status: int | None
    remark: str | None

    class Config:
        from_attributes = True
